body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" text-anchor="middle" fill="rgba(255,255,255,0.1)" font-size="12">💕</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>') repeat;
    opacity: 0.3;
}

.title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.ranking-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: rgba(255, 182, 193, 0.2);
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item .stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.ranking-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    background: rgba(255, 182, 193, 0.3);
}

.tab.active {
    background: rgba(255, 182, 193, 0.5);
    border-bottom-color: #e74c3c;
    font-weight: bold;
}

.ranking-list {
    padding: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #ddd;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ranking-item.champion {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.ranking-item.runner-up {
    border-left-color: #c0c0c0;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.ranking-item.third-place {
    border-left-color: #cd7f32;
    background: linear-gradient(135deg, #fdf2e9, #ffffff);
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.couple-info {
    flex: 1;
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.couple-avatars {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.heart-icon {
    margin: 0 10px;
    font-size: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.couple-details {
    flex: 1;
}

.couple-names {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.couple-status {
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 3px;
}

.couple-days {
    font-size: 12px;
    color: #7f8c8d;
}

.ranking-stats {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 20px;
}

.stat-text {
    text-align: center;
}

.stat-text .stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.stat-text .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.couple-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 200px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    font-size: 12px;
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.achievement-icon {
    font-size: 14px;
}

.ranking-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.update-time {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 20px;
}

.ranking-tips {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

.tip {
    font-weight: bold;
    color: #17a2b8;
    margin-bottom: 10px;
}

.tip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5px;
}

.tip-item {
    font-size: 14px;
    color: #495057;
    padding: 2px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .couple-info {
        width: 100%;
        margin-right: 0;
    }
    
    .ranking-stats {
        width: 100%;
        justify-content: space-around;
        margin-right: 0;
    }
    
    .couple-achievements {
        max-width: 100%;
    }
    
    .tip-list {
        grid-template-columns: 1fr;
    }
}